package ly.gupao.edu.interview;


/**
 * 2579 组成互不相同切无重复数字的三位数
 */
public class FormatNumber {

    public static void main(String[] args) {
        int temp = 0;
        int arr[] = {2, 5, 7, 9};
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 4; j++) {
                for (int k = 0; k < 4; k++) {
                    if(arr[i] != arr[j] && arr[i] != arr[k] && arr[j] != arr[k]){
                        temp += 1;
                        System.out.println(arr[i] * 186 + arr[j] * 10 + arr[k]);
                    }
                }
            }
        }
        System.out.println("count = " + temp);
    }
}
